package com.gdc.cloud.controller;


import com.gdc.cloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Description: 发送消息 Controller
 * @author: gdc
 * @date: 2021/2/3
 * @version 1.0
 */
@RestController
public class SendMessageController {

    @Resource
    private IMessageProvider messageProvider;

    /**
     * 发送消息
     * @return          消息内容
     */
    @GetMapping("/sendMessage")
    public String send(){
        return messageProvider.send();
    }
}
